package com.vueapi.controller.admin;

import com.vueapi.service.AdminIndexService;
import com.vueapi.utils.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Classname AdminIndexController
 * @Description TODO
 * @Created by 赵宏建
 * @Date 2022/9/23 10:36
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/admin/index")
public class AdminIndexController {

    @Resource
    private AdminIndexService indexService;

    @GetMapping("/getDataCount")
    public ResultUtils getDataCount() {
        return indexService.getDataCount();
    }

    @GetMapping("/getSevenDayData")
    public ResultUtils getSevenDayData(){
        return indexService.getSevenDayData();
    }

}
